﻿<Page x:Class="University.Workshop.Presentation.WaterReading.SearchKardexMeasure"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      Height="563" Width="780" 
	Title="SearchKardexChangeMeasure">

    <Grid Height="563" Width="780" 
        MaxHeight="563" MaxWidth="780" 
        MinHeight="563" MinWidth="780" 
        HorizontalAlignment="Center" VerticalAlignment="Top">

        <Path Data="F1M89,500C86.791,500,85,501.791,85,504L85,504L85,538C85,540.209,86.791,542,89,542L89,542L1081,542C1083.209,542,1085,540.209,1085,538L1085,538L1085,504C1085,501.791,1083.209,500,1081,500L1081,500z" Height="50" Margin="20,0,12,459" Stretch="Fill" Stroke="#FFB6BDBA" VerticalAlignment="Bottom">
            <Path.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF0F9F6" Offset="0" />
                    <GradientStop Color="sc#1, 0.8645034, 0.9386971, 0.9131128" Offset="0.036626586095394487" />
                    <GradientStop Color="sc#1, 0.849580646, 0.919979036, 0.8946999" Offset="0.046193367402403762" />
                    <GradientStop Color="sc#1, 0.8297841, 0.8951477, 0.8702733" Offset="0.052599494473647423" />
                    <GradientStop Color="sc#1, 0.8061086, 0.86545074, 0.8410604" Offset="0.057584354782454161" />
                    <GradientStop Color="sc#1, 0.7912979, 0.8468732, 0.822785735" Offset="0.059999998658895493" />
                    <GradientStop Color="#FFE6EDEA" Offset="0.059999998658895493" />
                    <GradientStop Color="#FFE6EDEA" Offset="1" />
                </LinearGradientBrush>
            </Path.Fill>
        </Path>
        <TextBlock FontSize="21" FontWeight="Bold" Margin="28,62,0,464" TextWrapping="Wrap" HorizontalAlignment="Left" Width="283"><TextBlock.Effect><DropShadowEffect BlurRadius="1" Color="White" Direction="270" Opacity="0.7" ShadowDepth="1" /></TextBlock.Effect> <Run Language="es-es" Text="Registrar/Cambiar Medidor" /></TextBlock>
        <Button Content="Buscar" Foreground="Black" Height="34" FontWeight="Bold" Margin="638,62,22,467" Name="SearchBtn" Click="SearchBtn_Click" />

        <Button Content="Buscar" Height="23" HorizontalAlignment="Center" Margin="598,141,112,0" Name="SearchIconBtn" VerticalAlignment="Top" Width="70" Click="SearchBtn_Click" Style="{StaticResource ButtonSearch}"/>
        <DataGrid HeadersVisibility="None" 
                AutoGenerateColumns="False"  
                CanUserAddRows="False"
                Height="298" 
                HorizontalAlignment="Center"
                Margin="111,167,111,0" 
                Name="KardexFindedDgv"
                VerticalAlignment="Top" 
                Width="557" >
            <DataGrid.Columns>
                <DataGridTemplateColumn Width="123" Header="Nombre">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Height="32" VerticalContentAlignment="Center" Content="{Binding Person.Names}" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Width="125" Header="Apellidos">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Height="16" VerticalContentAlignment="Center" Content="{Binding Person.LastNames}" Style="{StaticResource DataGridLabel}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Width="115" Header="Manzano">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Height="16" VerticalContentAlignment="Center" Content="{Binding AllotmentModel.SquareId}" Style="{StaticResource DataGridLabel}" HorizontalAlignment="Center"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Width="75" Header="Lote">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Height="32" VerticalContentAlignment="Center" Content="{Binding AllotmentModel.AllotmentName}" Style="{StaticResource DataGridLabel}" HorizontalAlignment="Center"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Acciones" Width="100">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                <!--<Button Width="32" Height="32" ToolTip="Mostrar" Name="ShowKardex" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_find.ico" Stretch="Fill" TileMode="FlipXY" Viewport="0,0,32,32"  ViewportUnits="Absolute" />
                                    </Button.Background>
                                </Button>-->
                                <Button Width="32" Height="32" ToolTip="Modificar"  Name="ModifyWaterReading" Click="ModifyWaterReadindBtn_Click" >
                                    <Button.Background>
                                        <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_edit2.ico" />
                                    </Button.Background>
                                </Button>
                            </StackPanel>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
        <TextBox Height="24" HorizontalAlignment="Left" Margin="474,141,0,0" Name="AllotmentTxt" VerticalAlignment="Top" Width="70">
        </TextBox>
        <Rectangle Height="25" HorizontalAlignment="Left" Margin="112,114,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="556" Fill="#43000000" />
        <Label Content="Nombres" HorizontalAlignment="Left" Margin="114,118,0,0" VerticalAlignment="Top" />
        <Label Content="Apellidos" HorizontalAlignment="Left" Margin="238,118,0,0" VerticalAlignment="Top" />
        <Label Content="Manzano" HorizontalAlignment="Left" Margin="363,118,0,0" VerticalAlignment="Top" />
        <Label Content="Lote" HorizontalAlignment="Left" Margin="478,118,0,0" VerticalAlignment="Top" />
        <TextBox Height="24" MaxLength="9" Margin="112,141,0,0" Name="NameTxt" VerticalAlignment="Top" Style="{StaticResource NumericTextBox}" HorizontalAlignment="Left" Width="120" />
        <TextBox MaxLength="55"  Height="24" HorizontalAlignment="Left" Margin="236,141,0,0" Name="LastNameTxt" VerticalAlignment="Top" Width="120" />
        <TextBox MaxLength="80" Height="24" HorizontalAlignment="Left" Margin="360,141,0,0" Name="SquareTxt" VerticalAlignment="Top" Width="110" />
    </Grid>
</Page>
